import { reactive, ref } from "vue";

export default function InitHook() {
  const searchForm = reactive<ReceivableStatement.AddFeeSearchForm>({
    beforePageNum: 0,
    customerId: "",
    waybillNums: "",
    channelId: [],
    costName: "",
    pageNum: 1,
    pageSize: 100,
    total: 0
  });
  const tableRef = ref<any>(null);
  const formState = reactive<{ receivableBillId: string }>({
    receivableBillId: ""
  });
  const tableData = ref<Array<Base.GeneraDataType>>([]);
  const loading = ref<boolean>(false);
  return {
    searchForm,
    tableData,
    loading,
    formState,
    tableRef
  };
}
